System and method for persisting mobile agents within a mobile region of interest

ABSTRACT

Mobile agents can be deployed to mobile devices within specific regions of interest to achieve specific goals in respect of events occurring in the region of interest. In order to ensure that the agent can persist within the region of interest until the agent goals are achieved, the agent is configured to locate other devices within the region of interest and to propagate itself, by moving or copying itself, to those other devices. The region of interest may be a mobile and/or dynamic region of interest defined by, for example, a proximity to one or more mobile wireless access points or by an overlapping peer-to-peer communication range of a plurality of mobile devices that are configured to support the agent.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority of and is a continuation of U.S. Ser.No. 14/444,074, entitled SYSTEM AND METHOD FOR PERSISTING MOBILE AGENTSWITHIN A MOBILE REGION OF INTEREST, filed on Jul. 28, 2014, issued asU.S. Pat. No. 9,451,382 on Sep. 20, 2016, which is a continuation ofU.S. Ser. No. 13/078,941, entitled SYSTEM AND METHOD FOR PERSISTINGMOBILE AGENTS WITHIN A MOBILE REGION OF INTEREST, filed on Apr. 2, 2011,issued as U.S. Pat. No. 8,793,357 on Jul. 29, 2014, incorporated hereinby reference in their entirety.

FIELD OF THE INVENTION

This disclosure relates to the deployment and execution of agents tomobile devices.

BACKGROUND OF THE INVENTION

In mobile communications, mobile devices may be configured to receiveand support mobile agents for performing various tasks. However, thevalue of a ubiquitous network of mobile sensory input has yet to beleveraged in the marketplace. Today, there is an increase in low cost,low power micro-electronics, sensors and wireless technologies. Forexample, the user of a location-aware mobile device may encounter oridentify a real-world event. The user can choose to download and executean intelligent agent-based software application to the mobile device toachieve a specific goal with or for the user.

The user will need to eventually leave the event or have some other needthat requires termination of the Agent on the device. This could happenbefore the Agent goal is completed. In prior art applications, this willtypically mean that the agent software is not able to continue toachieve its goal.

What is required is an improved system and method that enables mobileagents to persist in a mobile region of interest.

SUMMARY OF THE INVENTION

Mobile agents can be deployed to mobile devices within specific regionsof interest to achieve specific goals in respect of events occurring inthe region of interest. In order to ensure that the agent can persistwithin the region of interest until the agent goals are achieved, theagent is configured to locate other devices within the region ofinterest and to propagate itself, by moving or copying itself, to thoseother devices. The region of interest may be a mobile and/or dynamicregion of interest defined by, for example, a proximity to one or moremobile wireless access points or by an overlapping peer-to-peercommunication range of a plurality of mobile devices that are configuredto support the agent. Other embodiments for defining the mobile regionof interest are also possible.

In one aspect of the disclosure, there is provided a method fordeploying an agent to a mobile population of devices. The methodcomprises deploying an agent to a first mobile device and executing theagent on the first mobile device. A mobile region of interest may bedefined from the first mobile device. The agent may be replicated on atleast one second mobile device within the mobile region of interest andexecuted on the at least one second mobile device.

In one aspect of the disclosure, there is provided a mobile deviceexecuting an agent application on at least one processor of the mobiledevice. The agent application may be configured to engage inpeer-to-peer communication with a second mobile device. If the agent isable to determine that a second mobile device is within a mobile regionof interest then the agent may replicate to the second device.

In one aspect of the disclosure, there is provided a computer-readablemedium comprising computer-executable instructions for execution by atleast one processor of a first mobile device. Execution of theinstructions executes an agent application in which a mobile region ofinterest incorporating a communication range of the first mobile deviceis defined. The mobile device engages in peer-to-peer communication witha second mobile device which prompts the agent application to replicateto the second mobile device. The agent application expands thedefinition of the mobile region of interest to incorporate the secondmobile device.

BRIEF DESCRIPTION OF THE DRAWINGS

Reference will now be made, by way of example only, to specificembodiments and to the accompanying drawings in which:

FIG. 1 illustrates a network serving a region of interest;

FIG. 2 illustrates a process for deploying a mobile agent into theregion of interest;

FIG. 3 illustrates a state of the network of FIG. 1 with a deviceexecuting an agent application;

FIG. 4 illustrates a message flow when a device copies an agent to asecond device;

FIG. 5 illustrates a process for copying an agent from a first device toa second device;

FIG. 6 illustrates a process for terminating an agent on a device;

FIG. 7 illustrates a processor and memory of first and second devices;

FIG. 8 illustrates an instruction set that can execute on the processorof the first device of FIG. 7;

FIGS. 9 and 10 illustrate devices in a mobile region of interest;

FIG. 11 illustrates a method for persisting an agent in a mobile regionof interest;

FIG. 12 illustrates several devices in mobile region of interest; and

FIGS. 13 and 14 illustrate evolution of a mobile region of interest.

DETAILED DESCRIPTION OF THE INVENTION

In FIG. 1, there is shown a network 10 that includes a server 20 and anynumber of mobile devices 12. The mobile devices may communicate with theserver 20 through any suitable communications protocol. The network 10supports peer-to-peer communication but otherwise, the state or type ofthe network is not relevant to the essence of the disclosure. The mobiledevices 12 may communicate with the server 20 and with each otherthrough one or more base stations 18. Typically, the devices 12 may beof many types including cellular phones, personal digital assistants(PDA), netbooks, laptops, and the like.

The mobile devices 12 are generally configured to support dynamic,executable content through the network and may receive content from theserver 20. In particular, the server 20 may deploy an agent application16 to a mobile device 12, for example in response to a request from thedevice 12. As described above, agents 16 may be made applicable toparticular events within a region of interest. In addition, the regionof interest may be mobile. The server 20 is thus able to define aboundary of the region of interest in order to characterize where theevent is taking place. In one embodiment, the region of interest may bedefined by a series of latitude/longitude points or some similar arrayof coordinates. Alternatively, a region of interest may be defined asbeing within communication range of a particular base station 18 or setof base stations.

In the present embodiments, the agent 16 may require its host device tobe location aware. Awareness of location may be determined by anin-built system, such as a GPS or similar, which is able to provide thedevice with its present location to a required degree of accuracy.Alternatively or in addition, a device may be location aware byreceiving information from the server or via communications with thebase stations 18.

A user at a mobile device 12 is able to download an agent 16 from theserver 20 and to execute the agent 16 on the device 12 in order toachieve a particular goal. The goal may be in respect of a particularevent occurring within a region of interest 15 covered by the network10. Examples of applications and goals of the agent are provided in moredetail below.

As described above, there can be contention when the user needs to leavethe ROI or have some other need that requires termination of the agenton the device before the goals of the agent have been achieved. In orderto strike a balance between the user's needs and the agent's needs onthe device, the agent software should be deployed so that it is able topersist its presence within the ROI to service others who enter the ROI.

A method for deployment of the agent into the ROI is illustrated in theflowchart 100 of FIG. 2. At step 101, an ROI is defined for a particularagent application 16. The agent application 16 is then deployed to atleast one mobile device 12 (step 102), for example in response to arequest from the mobile device 12. The agent then executes (step 103)and as part of the execution of the agent, the agent may propagateitself to one or more other agents within the ROI (step 104), therebyensuring that the agent can persist until the agent functions arecompleted.

Initially, the mobile device need not be in the ROI when it receives theagent but when the device 12 moves into the ROI the agent will detectthat the device is within the event boundaries and begin execution.Similarly, when the device 12 leaves the event boundary defined by theROI, the agent may terminate or place itself into a stand-by mode.

Agent propagation may occur by moving or copying the Agent betweenparticipating devices within the ROI. In either scenario, the Agent'smotivation is to remain actively executing within the ROI. This servesto flood the ROI with Agents that act independently from each other andfunction toward the same goal.

Copying of the agent will now be described with reference to FIGS. 3 to5. FIG. 3 illustrates a state of the network 10, FIG. 4 illustratescommunications between two devices during the copying and the process isshown in the flowchart 200 of FIG. 5. In FIG. 3, an ROI 40 is definedwith a nominal boundary as depicted. Device_1 31, Device_2 32 andDevice_3 33 are operating within the geographic limits of the ROI 40while Device_4 34 is operating outside of the ROI 40. It is consideredthat each of the devices 31-34 is capable of supporting agentapplications and thus each executes the agent bootstrap code. Inaddition, each of the devices 31-34 is considered to be location awareby respective location providers of the devices 31-34. The networkconnectivity may be via Internet Protocols or may be isolated from theInternet with the type and state of the connectivity being largelyirrelevant for the purposes of the present disclosure.

At commencement, it is considered that Device_1 has had an agent 30deployed to it, either from the server 20 (FIG. 1) or from other priordevices within the ROI. The agent 30 includes an ROI definition 36 aswell as a device and location history of the agent 37.

Devices 32-34 which are executing the agent bootstrap code sendparticipation requests (step 201), e.g. by broadcast, multicast or bydirect communication to receptive devices, and then wait for agentactivation requests (step 203). The agent participation request 41provides the device identity and the current location of the device. Atstep 202, Device_1 31, which is currently hosting the agent 30, receivesagent participation requests 41 from the various other devices 32-34. Atstep 204, Device_1 31 determines from the agent participation requestwhether the requesting device is within the ROI 40. For example, theagent on Device_1 would compare the location of Device_4 34 indicated inan agent participation request with the ROI defined within the agent 36and determine that Device_4 34 is outside of the region of interest 40.In this case, the agent would return to step 202 and await a next agentparticipation request. Processing of an agent participation request fromDevice_2 32 however would show that Device_2 is located in the ROI andthus the agent 30 would proceed to step 206 and send an agent activationrequest 42 to Device_2 32. The agent activation request would return thedevice ID of Device_2 as well as an agent ID and a serialized version ofthe agent including both a definition of the ROI and a location ofdevice history of the agent. Device_1 would then proceed to step 208 andawait an agent activation response. At Device_2 32, if a timeout occurs(step 205) while awaiting the agent activation request, a failure isrecorded (step 207) and Device_2 32 returns to step 201 to send anotheragent participation request. Otherwise, if no timeout occurs, the agentactivation request is processed (step 209). That is, the agent isdeserialized and activated and the ROI and agent history is stored priorto starting the agent (step 211). If the agent cannot be successfullystarted as determined at step 213, then a failure is recorded 207 andDevice_2 32 returns to step 201. Otherwise, the copying of the agent isrecorded (step 215), e.g. by adding Device_2 32 to the location anddevice history. Device_2 32 then sends an agent activation response 43to Device_1 31 which indicates the device ID of Device_2 32, the agentID and a success or fail indicator.

If Device_1 31 receives the agent activation response 43 before atimeout (step 210) and the agent activation response 43 indicates thatthe agent has been successfully started on Device_2 (step 212), thenagent on Device_1 records the new agent (step 214). Otherwise, the agenton Device_1 records a failure (step 216).

At the conclusion of the process 200, the agent is actively executing onDevice_1 31 and on Device_2 32. Either of Device_1 or Device_2 may thencontinue replicating the agent to other devices within the ROI, such asDevice_3 33 following the process as described above.

The agent ID identifies the agent, and may be used by Device_2 todetermine if the agent is already available on the device. If Device_2doesn't have an agent with a matching agent ID, Device_2 must retrievethe correct agent from an external source, e.g., Device_1.

As an alternative to copying the agent, the agent 30 may be configuredto move from one device to another. The process for moving may besimilar to the process 200 shown in FIG. 5. However, the step ofrecording the new agent (step 214) may be replaced with the step ofterminating the agent on the host device, i.e. Device_1, once indicationof a successful activation on Device_2 is received.

Copying or moving of the agent may be triggered by the receipt of anagent activation request from another device within the ROI.Alternatively or in addition, the host device may only become receptiveto moving or copying the agent under certain conditions, such as whenthe device is being shut down, low battery power conditions, exiting theROI, reduced signal strength, a specific command from the user, and thelike.

EXAMPLES

A real-world event could be an unplanned emergency event (such as afire, flash flood, traffic accident, shooting, etc) or a plannednon-emergency event (such as a concert, fair, road repair, sportingevent, etc) or a combination (such as traffic congestion, road repairand a traffic accident). The origination of the agent and the ROI is notrelevant to this disclosure but can differ based on each scenario.Individual examples are detailed in the following paragraphs.

-   -   Disaster search and rescue missions could drop in mobile Base        Transceiver Stations (BTS) pre-programmed with a specific ROI        and Agents to facilitate propagation to other mobiles that are        in or enter the ROI. The agent copies itself to devices as they        enter the ROI of the search and rescue effort. The agent might        provide response leaders with command and control, enabling the        command post to identify each participant, observe the location        of each participant, assign search tasks to selected        participants, and notify participants of status changes. The        agent may change status or cease operating when a participant        enters a rest area, departs the ROI, or in some other manner        ceases to participate in the search and rescue mission.    -   A 911 dispatcher could submit an Agent and a ROI to a caller's        mobile in response to a traffic accident. The participant can        use the camera or various other sensor inputs of the mobile        device to indicate the type of injury (or injuries) involved.        The police and medical responders can use this information,        carried by the agent as it copies itself to additional devices        as they enter the region, to quickly facilitate their actions        (e.g., will Care-Flight be needed because of traffic        congestion?, etc). When the agent determines that the        participant has exited the ROI, e.g., by comparing the device's        current location with the ROI boundary, the agent moves to        another device that is entering the ROI, stops participating in        the ROI related to the traffic accident and waits for the next        event, or ceases operation. The act of copying or moving to a        device that is entering the ROI is an example of the agent        achieving the goal of persistence within the ROI.    -   A mobile user can create an Agent and ROI at a crowded        concession stand at a sporting event in order to quickly        understand the demands for hot dogs drinks, etc based on the        crowd's demands. As customers depart the service counter, the        agent detects the movement and either moves to a device        approaching the concession stand that isn't already running the        agent, or if no such device is available, stops operating.

Other scenarios would be apparent to the skilled addressee from theforegoing embodiments and examples.

In the above examples, the point-to-point communication within a regionof interest can help to promote a direct, expedient exchange ofinformation between agents. When an agent detects that its host devicehas left the ROI, it may terminate the agent. An agent's motivation tostay within a specified ROI, e.g. by moving or copying itself to otheragents, allows the device to free up resources acquired by the agentafter a power cycle or once the device leaves the ROI boundary.

In one embodiment, there may be defined one or more threshold conditionsthat enable the agent to provide a graceful termination on a device. Inone embodiment, a threshold of the ROI may be defined as a second seriesof coordinates that define a threshold boundary immediately outside ofthe ROI boundary. Devices at a location between the threshold boundaryand the ROI boundary may be considered to be within the threshold.

In one embodiment, a threshold of the ROI may be defined by signalstrength. For example, where a ROI is defined by proximity to basestations a device with a signal strength of less than 20% with a basestation within the ROI may be considered to be operating within athreshold region. The signal strength may be used to as a thresholdcondition irrespective of how the ROI is defined, e.g. by coordinates,base stations or by other means. The choice of threshold signalstrength, e.g. 20% is presented herein as an example with any suitablethreshold being chosen dependent on the application and implementation.

In a further embodiment, a device may be considered to be operating in athreshold region if the battery life of the device is below a requiredlevel, e.g. 20%.

A process for terminating the agent on a device is shown in theflowchart 300 of FIG. 6. At step 301, the agent is periodically updatingthe device location. If the agent determines that the device is stillcomfortably within the ROI (step 302) then normal agent operationcontinues (step 303). Otherwise the agent may determine if the device isin a geographic threshold region (step 304) and, if so, the agent entersa standby mode (step 305) where the agent actively monitors the devicelocation (step 301) but other agent functions such as data gathering andprocessing are suspended. In the standby mode, the agent may continue topropagate itself to other devices within the ROI. If step 304 shows thedevice to be outside of the threshold, then the agent enters atermination mode (step 306) and an optional termination timer is started(step 307). The termination timer provides a final opportunity for thedevice to re-enter the ROI.

Upon expiry of the termination timer (step 308), or if the terminationtimer is disabled, a final check of the device location is made (step309). If the device has re-entered the ROI as determined at step 310,then agent operation is resumed (step 311). If the agent has notre-entered the ROI but is within the ROI threshold, as determined atstep 312, then the agent enters the standby mode (step 313). Otherwise,the agent is terminated (step 314), at which time a terminationnotification message may be broadcast/multicast/unicast to known agentswithin the ROI.

Where non-geographic threshold conditions are employed, such as based onsignal strength and/or device battery power, the agent may enter astandby mode even if the device is within the ROI. Further, morestringent threshold conditions can be applied, such as battery powerless than 5%, to cause the agent to enter a termination mode.

The components of the system 10 may be embodied in hardware, software,firmware or a combination of hardware, software and/or firmware. In ahardware embodiment, a mobile device such as Device_1 31 may include aprocessor 61 operatively associated with a memory 62 as shown in FIG. 7.The memory 62 may store an instruction set 400 executable by theprocessor 61 which may include the bootstrap code described above. Thebootstrap code allows the processor 61 to receive an agent application,either from the server 20 or from another mobile device. The instructionset 400, shown in FIG. 8, may include instructions that, when executed,causes the processor 61 to execute the agent application (step 401)which may include storing a definition of the region of interest in thememory 62. When executing, the agent application can receive an agentparticipation request from a second processor 71 of a second device(step 402), e.g. Device_2 32 (FIG. 3). The agent participation requestmay be received through a suitable communications link 65, such as apeer-to-peer link or via one or more base stations and/or a server. Fromthe agent participation request, the processor 61 can determine thelocation of the second device and compare the second device's locationwith a definition of the region of interest (step 403). If the seconddevice is shown to be within the region of interest, the processor 61can provide a serialized version of the agent application to the secondprocessor 71 (step 404). The second processor 71, upon receiving theserialized agent application, may deserialize the agent application,store the ROI definition in its respective memory 72 and activate theagent application.

In the embodiments described above, the Region of Interest (ROI) is astatic geographic region fixed around a stationary base station e.g., apolygon defined by three or more line segments where each intersectionof lines is located at a fixed latitude/longitude. In alternativeembodiments to be described below, the ROI may be dynamic and moving. Amoving ROI might be defined by the union of radio transceiver coverageof a collection of moving vehicles, e.g., the WiFi signal coverage oftwo cars equipped with WiFi access points moving in the same directionon a street or highway. An agent executing on a device that is able tocommunicate with either of the WiFi access points may consider itself tobe within the ROI. If the agent requires to replicate or move itself toanother device, e.g. due to a deteriorating signal or diminishingbattery strength, the agent may replicate or move itself to otherdevices based on received participation requests from the other devices,as described above.

An agent may copy or replicate itself to other participating deviceswithin the ROI. This serves to flood the ROI with Agents that actindependently of or cooperatively with each other and function towardthe same goal.

In one embodiment, the ROI may be mobile and may be defined by a mobilepopulation of devices that are able to communicate in a peer-to-peermanner with each other. A mobile ROI may be the volume within which theradio of the mobile device that starts the agent provides a signalstrong enough that other devices can detect and connect to the initialdevice on a peer-to-peer network. Infrared transceivers are a viablealternative to radios for peer-to-peer device communications.

An embodiment for initializing and evolving a mobile ROI will now bedescribed. With reference to FIGS. 9 and 10 and to the flowchart 500 ofFIG. 11. At step 501, an agent application 92 is deployed to a firstmobile device 90 and begins executing (step 502). As part of theexecution of the agent, the agent looks for other mobile devices 94within a communication range of device 90 to which the agent canreplicate. As shown in FIG. 9, a second, non-participating device 94 isoutside the region of radio coverage of the device and so is unable tocommunicate with the device 90 and thereby is unable to receive theagent from device 90. At some later time, depicted in FIG. 10, thedevices 90, 94 have moved so that their radio coverages overlap and theyare able to communicate. The agent 92 replicates itself from theoriginal device 90 to the additional device 94, e.g. via an agentbootstrap executing on the device 94 (step 503) and begins executing(step 504). The devices 90 and 94 now define a mobile population ofdevices or a mobile region of interest. A definition of the mobilepopulation may be defined by a membership list, i.e. device 90, 94 (step505) and stored in one or more of the agents (step 506). Any device thatcan execute the agent and can have peer-to-peer communications witheither or both of devices 90, 94 can be said to be within the mobilepopulation, indicated in FIG. 10 by the dashed boundary 95.

How the mobile region of interest is defined may be dependent on theparticular functions and goals of the agent 92 and many definitions willoccur to a person skilled in the art. In one embodiment, it may only benecessary for a device to be in direct communication range of a singleother device. In an alternative embodiment, for a device to beconsidered a member of the mobile population each device may be requiredto be within a peer-to-peer communication range of all devices of themembership list.

In one embodiment, the ROI may be defined as the collection of devicesable to directly or indirectly communicate with each other, e.g., allthe devices are in range of a single WiFi access point or the devicesare able to dynamically establish mesh network of the sort described byIEEE 802.11s. The moving ROI could be defined as the collection ofdevices participating in a 802.11s network or similar mesh network.Member devices of such a network might be a group of vehicles movingdown a highway, or a squad of soldiers moving across a battlefield.“Defining the ROI” amounts to establishing the 802.11s mesh network.“Joining the ROI” means establishing membership in the 802.11s meshnetwork.

Some agent-based applications may require every agent to know about andbe able to communicate directly with every other agent. Otheragent-based applications might use broadcasts (messages addressed to abroadcast address that will be received by zero or more agents listeningfor broadcasts) to communicate with other ROI members. Using a broadcastor multicast address means the sender doesn't directly address therecipients one by one, and thus needs no membership list.

The definition of the mobile population may be maintained and stored byone or more of the member agents/devices of the mobile population.Changes in membership can be communicated externally of the mobilepopulation, e.g. to management and administration applications. Whetheror not such changes in membership will be communicated externally willdepend on the functions and goals of the particular executing agent.

The process of replicating the agent may continue for each suitablemobile device (e.g. one that is executing the agent bootstrap) thatcomes within communication range of the mobile population so that themobile population may appear as depicted in FIG. 12. Each agent on aparticipating device may operate as equal participants to theapplication or each instance of the agent may have an assigned role,depending on the programmed functions and goals of the agentapplication. Examples of the mobile agent application are discussedbelow.

If a device, say Device 1, later moves out of radio coverage of otherdevices within the mobile population, then device 1 will stopparticipating in the agent application covered by the mobile population.In some cases, depending on a policy of the agent or a user preference,Device 1 may continue to execute the participating application and thusmay define a new mobile population, together with any other devices thatit is in communication range with. Alternatively, the agent may shutdown on Device1.

A device can figure out which devices it can directly communicate with,and can, if necessary, send a query asking those devices for their listsof ROI members. For example, as part of the procedure for joining anROI, a device might broadcast a query asking other members to broadcasttheir identity and ROI status. Similarly, when a device leaves an ROI,it could broadcast a “good bye” message that other members would repeat,resulting notification to all members of the originating device's newmembership status. A member device (or the agent participating in theROI) must be able to answer the “Who do you know are ROI members?”query, and participate in the broadcasts. The agent participating in theROI may or may not need to know the full membership list; that dependson the agent's purpose and implementation. For example, an agent mayneed to maintain a list of only the direct neighbor devices hosting anagent that is in the same ROI.

Scenario 1: An Army squad leader operating in the field defines andestablishes a mobile Region of Interest as the collection of mobiledevices used by members of the squad able to directly or indirectlycommunicate with the squad leader's device. For example, the squadmembers might establish an ad-hoc wireless network, e.g., based on802.11s, and define the ROI as the area covered by the wireless network.Squad members join the ROI. As the squad moves the ROI moves with them.When the squad gets near another friendly squad, the agents in the ROIsauthenticate each other and merge the ROIs. As squad members leave,perhaps because they get out of radio range, the ROI and other personneljoin or rejoin, the agents transparently adjust themselves to maintainthe ROI. Consider that the ROI of the squad (either the original or themerger of the two) is shown in FIG. 13 and that the Agent is operatingon all devices in the ROI. As Device 131 moves away from the otherDevices it loses the ability to communicate with the other Agents, andas a result, loses membership in the ROI (FIG. 14). When Device 131crosses into the threshold area, defined in this scenario in terms ofsignal strength, it notifies the other Agents it is probably ceasing toparticipate in the ROI. This happens in a manner similar to, or as analternate and optional step in, the process shown in FIG. 6. The otherAgents note the departure message and take actions appropriate, e.g.,the Agent on the squad commander's Device might notify the commander ofthe departure.

Scenario 2: Consider a cycling team composed of cyclists, a coach, amanager, and support staff. The coach or manager starts an agent thatassists while the team is moving. The boundary of the moving ROI isdefined by the union of the radio coverage of each team member that isin range of other team members. The agent monitors the location of theteam, the status of individual team members, etc., moving from member tomember as necessary. When a member leaves the ROI, e.g., by moving outof radio range of all the other team members, the agent ensures that itcan continue operating by moving to a team member who is remaining inthe ROI. How the agent reacts to membership changes of the ROI willdepend on the programming of the agent. For example, the coach ormanager may define the actions the Agent should take for a given event.Options would include replicating itself to create a second ROI,notifying the coach of the change in membership, etc. Policies or rulesmay be defined to ensure that the agent replicates as necessary tomaintain an ROI for every team member, with a mirror rule governing whento merge two ROIs.

Scenario 3: A team of first responders arrives on scene. Each respondercarries a mobile device able to participate in a peer-to-peer network,and each mobile asset (ambulance, fire truck, police car, etc.) is alsoable to participate in the same peer-to-peer network. A geographic,immobile ROI is established, defined as a polygon whose vertices arespecified as a GPS coordinate. As participants in the immobile ROIleave, e.g., medics leaving in an ambulance with a patient, a mobile ROIis created among the moving devices. An agent operating on medic'smobile device containing medical information about the patient movesfrom the medic's device to the ambulance, e.g., to display patientinformation on large display installed in the ambulance rather than onthe mobile device's small display. The agent might also choose or betold the ambulance's destination, establish a connection to thedestination facility, and provide the destination facility staffinformation about the patient, the ambulance, etc.

Although embodiments of the present invention have been illustrated inthe accompanied drawings and described in the foregoing description, itwill be understood that the invention is not limited to the embodimentsdisclosed, but is capable of numerous rearrangements, modifications, andsubstitutions without departing from the spirit of the invention as setforth and defined by the following claims. For example, the capabilitiesof the invention can be performed fully and/or partially by one or moreof the blocks, modules, processors or memories. Also, these capabilitiesmay be performed in the current manner or in a distributed manner andon, or via, any device able to provide and/or receive information.Further, although depicted in a particular manner, various modules orblocks may be repositioned without departing from the scope of thecurrent invention. Still further, although depicted in a particularmanner, a greater or lesser number of modules and connections can beutilized with the present invention in order to accomplish the presentinvention, to provide additional known features to the presentinvention, and/or to make the present invention more efficient. Also,the information sent between various modules can be sent between themodules via at least one of a data network, the Internet, an InternetProtocol network, a wireless source, and a wired source and viaplurality of protocols.

What is claimed is:
 1. A method, comprising: executing an agent in afirst mobile region of interest on a first mobile device; replicatingthe agent on at least one second mobile device; executing the agent in asecond mobile region of interest on the at least one second mobiledevice; merging a definition of the first mobile region of interest witha definition of the second mobile region of interest when a mobiledevice of the first mobile region of interest comes within acommunication range of a mobile device of the second mobile region ofinterest, wherein the first mobile device and the second mobile deviceare able to dynamically establish a mesh network; and removing anymobile device from the mobile region of interest that are unable tocommunicate within the mobile region of interest, wherein such removalof the mobile device may be further determined by meeting thresholdconditions of the mobile region of interest.
 2. The method of claim 1wherein replicating the agent comprises copying the agent from the firstmobile device to the at least one second mobile device.
 3. The method ofclaim 1 wherein replicating the agent comprises deploying the agent froma deployment point to the at least one second mobile device.
 4. Themethod of claim 1 comprising joining one or more further mobile devicesto a mobile population of devices when the one or more further mobiledevices come within a communication range of at least one mobile devicewithin the mobile region of interest.
 5. The method of claim 1 whereinthe agent is configured to engage in peer-to-peer communication with thesecond mobile device.
 6. The method of claim 1 comprising defining asecond mobile region of interest comprising the removed mobile device.7. The method of claim 1 wherein the definition of the mobile region ofinterest comprises a membership list of mobile devices.
 8. The method ofclaim 1 comprising deploying an agent to a first mobile device.
 9. Themethod of claim 1 comprising updating the definition of the mobileregion of interest.
 10. The method of claim 9 wherein updating thedefinition of the mobile region of interest comprises determining whichmobile devices are in a communication range of each other.
 11. Themethod of claim 9 wherein updating the definition of the mobile regionof interest comprises removing from the definition of the mobile regionof interest any mobile devices that are not in communication range. 12.A mobile device, comprising: a processor configured to: replicate anagent application to a second mobile device if the second mobile deviceis within a mobile region of interest; merge a definition of the mobileregion of interest associated with the mobile device and with the secondmobile device; determine which mobile devices from the merged definitionof the mobile region of interest are in communication range of eachother, wherein the mobile device and the second mobile device are ableto dynamically establish a mesh network; and remove from the mergeddefinition of the mobile region of interest any mobile devices of thedefinition that are not in communication range, wherein such removal ofthe mobile device may be further determined by meeting thresholdconditions of the mobile region of interest.
 13. The mobile device ofclaim 12 wherein the agent application is configured to determinewhether the mobile device and the second mobile device are members of asame mesh network.
 14. The mobile device of claim 12 wherein the agentapplication is configured to engage in peer-to-peer communication with asecond mobile device.
 15. The mobile device of claim 12 wherein theagent application is configured to determine whether a second mobiledevice is within a mobile region of interest.
 16. The mobile device ofclaim 12 wherein the agent application is configured to remove themobile device from a definition of the mobile region of interest whenthe mobile device moves out of the mobile region of interest.
 17. Themobile device of claim 12 wherein the agent application is configured toinitiate a second mobile region of interest incorporating the mobiledevice.
 18. A non-transitory computer-readable medium comprisingcomputer-executable instructions that, when executed, cause at least oneprocessor to: define a mobile region of interest incorporating acommunication range of a first mobile device; replicate an agentapplication to a second mobile device comprising a second mobile regionof interest; merge a definition of the second mobile region of interestwith the definition of the first mobile region of interest, wherein thefirst mobile device and the second mobile device are able to dynamicallyestablish a mesh network; and update the definition of the mobile regionof interest to remove any mobile devices that are not within acommunication range of at least one mobile device within the mobileregion of interest, wherein such removal of the mobile device may befurther determined by meeting threshold conditions of the mobile regionof interest.
 19. The non-transitory computer-readable medium of claim 18comprising computer-executable instructions that, when executed, causethe at least one processor to engage in peer-to-peer communication witha second mobile device.
 20. The non-transitory computer-readable mediumof claim 18 comprising computer-executable instructions that, whenexecuted, cause the at least one processor to execute an agentapplication.